package test;

import org.eclipse.swt.events.KeyAdapter;
import org.eclipse.swt.events.KeyEvent;
import org.eclipse.swt.SWT;

public class MyKeyListener extends KeyAdapter
{
	public void keyReleased(KeyEvent e)
	{
		if(e.keyCode == SWT.ESC)
		{
			System.out.println("ESC pressed");
			e.display.dispose();
		}
	}
}
